using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using DigitalFortress.Entities;
using System.ServiceModel;
using DigitalFortress.Configuration;
using DigitalFortress.Fault;
using DigitalFortress.Core;

namespace DigitalFortress.Testing.Agent.Administration.ApplicationOperations {

	/// <summary>
	/// Tests if the Administration Service is online.
	/// </summary>
	[TestFixture]
	public class AdministrationServicePingTest {

		#region Tests

		/// <summary>
		/// Test successful ping.
		/// </summary>
		[Test]
		public void PingServiceTest() {
			IConfiguration config = XmlConfiguration.Current;
			AdministrationAgent agent = new AdministrationAgent(config);
			bool ping = agent.Ping();

			Assert.IsTrue(ping);
		}
		#endregion Tests
	}
}
